<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
<div id="container" style="width: 1000px;">
	<div id="edit" style="height: 200px;width: 1000px;float: left;">
		<form action="" method="post">
			{% csrf_token %}
			<fieldset>
				<legend>添加充电桩</legend>
				充电桩地址: <input type="text" name="address"><br>
				充电桩总数: <input type="text" name="total_number"><br>
				充电桩类型
				<select name="charging_type">
					<option value="AC">交流桩</option>
					<option value="DC">直流桩</option>
				</select><br>
				收费类型: 
				<select name="ownership_type">
					<option value="exclusive">专享</option>
					<option value="public">公共</option>
				</select><br>
				<input type="submit">
			</fieldset>
		</form>
	</div>
	<div id="update" style="height: 400px;width: 1000px;float: left;">
		<table border="1">
			<tr>
				<th>充电桩地址</th>
				<th>充电桩空闲数</th>
				<th>充电桩总数</th>
				<th>充电桩类型</th>
				<th>收费类型</th>
				<th>修改</th>
			</tr>
			{% for point in points %}
			<tr>
				<td>{{ point.address }}</td>
				<td>{{ point.available_number }}</td>
				<td>{{ point.total_number }}</td>
				<td>{{ point.current_type }}</td>
				<td>{{ point.ownership_type }}</td>
				<td>
					<a href="update_power/{{ point.point_number }}">更新</a>
					<a href="delete_power/{{ point.point_number }}">删除</a>
				</td>
			</tr>
			{% endfor %}
		</table>
	</div>
	<div id="footer" style="clear: both;text-align: center;"></div>
</div>
</body>